import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

/// @Title   去除滚动效果的ScrollBehavior
/// @Author: bryce
/// @CreateDate: 2023年08月29日09:59:56
class NoGlowScrollBehavior extends ScrollBehavior {
  @override
  Widget buildViewportChrome(
      BuildContext context, Widget child, AxisDirection axisDirection) {
    return GlowingOverscrollIndicator(
      //不显示头部水波纹
      showLeading: false,
      //不显示尾部水波纹
      showTrailing: false,
      axisDirection: axisDirection,
      color: Theme.of(context).colorScheme.secondary,
      child: child,
    );
  }
}